var win = window
var doc = document
var html = doc.documentElement;
if (
  /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)
) {
  // win.location.href = "./m/index.html" + location.search;
}

function setFont() {
  console.log('resize')
  var k = 1200;
  html.style.fontSize = (html.clientHeight - 42) / k * 100 + "px";
}
setFont();
doc.addEventListener('DOMContentLoaded', setFont, false);
win.addEventListener('resize', setFont, false);
win.addEventListener('load', setFont, false);
